package cn.juque.lucenecandy.core.base;

import cn.juque.common.base.PageInfo;
import cn.juque.lucenecandy.bo.IndexBO;
import lombok.Data;
import org.apache.lucene.search.BooleanClause;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.Sort;

import java.util.Map;
import java.util.Set;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>QueryWrapper</li>
 * </ul>
 * @date 2023-12-26
 **/
@Data
public class QueryWrapper extends AbstractWrapper {

    private PageInfo pageInfo;

    public QueryWrapper(String className, IndexBO indexBO, Map<Query, BooleanClause.Occur> queryMap, Sort sort, PageInfo pageInfo, Set<String> fieldToLoad) {
        super.className = className;
        super.queryMap = queryMap;
        super.sort = sort;
        super.indexInfo = indexBO;
        super.fieldToLoad = fieldToLoad;
        this.pageInfo = pageInfo;
    }
}
